import React from 'react'
import { render } from 'react-dom'
import {
    BrowserRouter,
    Route,
} from 'react-router-dom'
import Console from './page/console'
import Login from './page/login'
class App extends React.Component{
    render(){
        return (
            <div>
                <BrowserRouter>
                    <div>
                        <Route path="/console" component={Console} />
                        <Route path="/login" component={Login}/>
                    </div>
                </BrowserRouter>
            </div>
        );
    }
}

render(<App/>,document.getElementById('app'));